 {include file="public/header" /}
 <style type="text/css">.gray-bg{ background: #fff; }.wrapper{ padding:0px;}.asdh5 h5{border-top: 1px dotted #ccc; padding-top: 20px;margin-top: 20px;}#hidetent{ display: none; }</style>
 <body class="gray-bg">
 <div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="ibox-content">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">红包总额(元)：</label>
                        <div class="col-sm-9">
                            <input name="money" type="text"  class="form-control" value="{present name="name"}{$name.money}{/present}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">红包上限(元)：</label>
                        <div class="col-sm-9">
                            <input name="top" type="text"  class="form-control" value="{present name="name"}{$name.top}{/present}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">红包下限(元)：</label>
                        <div class="col-sm-9">
                            <input name="bottom" type="text"  class="form-control" value="{present name="name"}{$name.bottom}{/present}">
                        </div>
                    </div>

                    {notpresent name="name"}
                        <div class="form-group">
                        <label class="col-sm-2 control-label">日期：</label>
                        <div class="col-sm-9">
                            <input name="time" type="text" id="start" class="form-control layui-input" value="{present name="name"}{$name.time}{/present}"  placeholder="时间" autocomplete="off">
                        </div>
                    </div>
                    {/notpresent}

                    {present name="name"}
                        <input type="hidden" name="id" value="{$name.id}">
                    {/present}
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<script type="text/javascript">

    layui.use(['laydate'], function(){
      var laydate = layui.laydate;
      var form = layui.form;      
      
      //执行一个laydate实例
      laydate.render({
        elem: '#start' //指定元素
          ,trigger: 'click'
      });
    })

$(document).ready(function(){
     $(".i-checks").iCheck({
        checkboxClass: "icheckbox_square-green",
        radioClass: "iradio_square-green",
    })
})
</script>
{include file="public/bottom" /}

<script type="text/javascript">
// $(document).ready(function(){
//     $(".i-checks").iCheck({
//         checkboxClass: "icheckbox_square-green",
//         radioClass: "iradio_square-green",
//     })
// });
function msg(){
    layer.msg("上传成功")
}
</script>
 
